/**
 * 欢迎页面信息（首页信息）
 */
package com.axt.dbaudit.bean.cfg;

import java.util.List;

import com.axt.dbaudit.base.MsgFuncExt;
import com.axt.dbaudit.model.cfg.DiskMonitor;
import com.axt.dbaudit.model.cfg.Monitor;
import com.axt.soa.bean.BaseFuncBean;

public class MonitorBean extends BaseFuncBean {
	/**
	 * 查询硬盘信息
	 * 
	 * @return
	 */
	public List<DiskMonitor> queryDiskInfo(String serverPath) {
		prepare(serverPath);

		return fetch(MsgFuncExt.FUNC_MONITOR_DISK,
				"com.axt.dbaudit.model.cfg.DiskMonitor", "DiskMonitor", CONN_T_TCP);
	}

	/**
	 * 查询内存与CPU信息
	 * 
	 * @return
	 */
	public List<Monitor> queryMemAndCPU(String serverPath) {
		prepare(serverPath);

		return fetch(MsgFuncExt.FUNC_MONITOR_BASE_SYS,
				"com.axt.dbaudit.model.cfg.Monitor", "Monitor", CONN_T_TCP);
		// '{"column":["system_type","memory_total","memory_free","use_cpu"],
		// "value":[{"memory_free":10377912.0,"memory_total":12322724.0,"system_type":"linux","use_cpu":6.300000190734863}]}
	}
}
